<template>
 <section class="loginContainer">
   <div class="header">
      <span class="_icon _i1" @click="goTo('/mine')"><i class="el-icon-arrow-left"></i></span>
      <span class="_icon _i2" @click="goTo('/setting')">
        <i class="el-icon-more-outline"></i>  
      </span>
    </div>
    <div class="loginInner">
      <div class="login_header">
        <h2 class="login_logo">青年E融资</h2>
        <div class="login_header_title">
          <a href="javascript:;" :class="{on: loginWay}" @click="loginWay=true">密码登录</a>
          <a href="javascript:;" :class="{on: !loginWay}" @click="loginWay=false">短信登录</a>
        </div>      
      </div>
      <div class="login_content">
          <div :class="{on: loginWay}">
            <section>
            <section class="login_message">
              <el-input v-model="input" placeholder="手机号"></el-input>
            </section>
            <section class="login_button">
              <el-button type="text">获取验证码</el-button>
            </section>
            <section class="login_verification">
             <el-input v-model="input" placeholder="验证码"></el-input>
            </section>
            
            </section> 
          </div>
          <div :class="{on: !loginWay}">
            <section>
            <section class="login_message">
              <el-input v-model="input" placeholder="手机/邮箱/用户名"></el-input>
            </section>
            <section class="login_verification">
             <el-input v-model="input" placeholder="密码"></el-input>
            </section> 
            </section>                   
          </div>
          <section class="login_hint">
              温馨提示：未注册青年E融资帐号的手机号，登录时将自动注册，且代表已同意
              <a href="javascript:;">《用户服务协议》</a>
          </section>
          <button class="login_submit">登录</button>
          <a href="javascript:;" class="about_us">关于我们</a> 
          
      </div>
    </div>

 </section>
</template>

<script>

  export default {
    data () {
      return {
        loginWay:true,
        input: ''
      }
    },

    computed: {
     
    },

    methods: {
      goTo:function(Path){
          this.$router.replace(Path);
      }
      
    },

    components: {
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
  @import "../../common/stylus/mixins.styl"
  .loginContainer
    width 100%
    height 800px
    background #ffffff
    .header
      width: 100%;
      height: 50px;
      position: fixed;
      z-index: 100;
      
      ._icon
        height: 50px;
        width: 50px;
        position: absolute;
        right: 0;
        font-size:35px; 
        color:#666;
        line-height: 50px;
        text-align:center;
      
      ._i1
        font-size: 30px;
        left:0;
    .loginInner
      padding-top 60px
      width 80%
      margin 0 auto
      .login_header
        .login_logo
          font-size 40px
          font-weight bold
          color #c7000b
          text-align center
        .login_header_title
          padding-top 20px
          text-align center  
          >a
            color #333
            font-size 16px
            padding-bottom 4px
            &:first-child
              margin-right 40px
            &.on
              color #ff333d
              font-weight 700
              border-bottom 2px solid #ff333d
      .login_content
        position relative
        .on
          display none
          position relative
          top 15px
        .login_message
          width 100%
          position relative
          margin 10px 0;
          float left
        .login_button
          position absolute
          width 30%
          right 0
          top 10px
          z-index 300
            &.on
              display block
            input
              width 100%
              height 100%
              padding-left 10px
              box-sizing border-box
              border 1px solid #ddd
              border-radius 4px
              outline 0
              font 400 14px Arial
              &:focus
                border 1px solid #02a774  
        .login_hint
            margin-top 13px
            color #999
            font-size 14px
            line-height 20px
            >a
              color #0099FF 
        .login_submit
            display block
            width 100%
            height 42px
            margin-top 30px
            border-radius 4px
            background #c7000b
            color #fff
            text-align center
            font-size 16px
            line-height 42px
            border 0                    
        .about_us
            display block
            font-size 14px
            margin-top 20px
            text-align center
            color #999
</style>
